package Java8实战._1_LocalDate_LocalTime_Instant_Duration_Period._1_LocalData_LocalTime;

import java.time.LocalTime;

public class _3_创建LocalTime并读取其值 {

    public static void main(String[] args) {
        LocalTime localTime = LocalTime.of(13,45,20);
        int hour = localTime.getHour();
        System.out.println("hour : " + hour);

        int minute = localTime.getMinute();
        System.out.println("minute : " + minute);

        int second = localTime.getSecond();
        System.out.println("second : " + second);
    }
}










